<?php

declare(strict_types=1);

namespace App\CustHub\Controller;

use App\CustHub\Annotation\ApiAuth;
use App\CustHub\Annotation\VerifySignature;
use App\CustHub\Service\ChContactBwDeleteRecordService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\PostMapping;

/**
 * 黑白名单删除记录
 */
#[Controller(prefix: 'ch/bw/del'),ApiAuth,VerifySignature]
class ChContactBwDeleteRecordController extends BaseController
{
    #[Inject]
    protected ChContactBwDeleteRecordService $service;

    #[PostMapping('record')]
    public function list(): \Psr\Http\Message\ResponseInterface
    {
        return $this->success($this->service->list($this->request->all()));
    }
}